﻿
namespace SuperMarieFaceBiz
{
    using FaceppSDK;
    using System.Drawing;

    public class FaceBizTool
    {
        public FaceService fs = new FaceService("d36ec940bde8dcb04fe63a540cfcdc1e", "IWtQY1tAzN3zyuRoh7jtkccZS9y7K1mD");



        public DetectResult ReadImage(string filepath)
        {
            //Bitmap bitmap = new Bitmap(filepath);
            //Image image1 = new Bitmap(bitmap);

            DetectResult res = fs.Detection_DetectImg(filepath);

            for (int i = 0; i < res.face.Count; ++i)
            {
                return res;
            }
            return res;
        }

        public CompareResult CompareImage(string face_id1, string face_id2)
        {
            CompareResult res = fs.Recognition_Compare(face_id1, face_id2);

            return res;
        }
    }
}
